import { request } from '@/common/js/request.js'

// 创建新隐患接口
export function creatDangerInfoApi(params) {
  return request({
    url: '/admin-api/biz/ht-hiddentrouble/create',
    method: 'post',
    data: params
  })
}

// 获取隐患登记列表接口
export function getCheckListApi(params) {
  return request({
    url: '/admin-api/biz/ht-hiddentroubleIssue/page',
    method: 'get',
    data: params
  })
}

// 获取隐患登记详情接口
export function getCheckDetailApi(params) {
  return request({
    url: '/admin-api/biz/ht-hiddentroubleIssue/get',
    method: 'get',
    data: params
  })
}

// 修改隐患登记接口
export function updateCheckInfoApi(params) {
  return request({
    url: '/admin-api/biz/ht-hiddentroubleIssue/update',
    method: 'put',
    data: params
  })
}